package demo1222.am;

import java.util.HashMap;
import java.util.Map;

public class Demo_02 {
    public static void main(String[] args) {
        Map<Student, String> map = new HashMap<>();

        map.put(new Student("tom",101),"安徽大学");
        map.put(new Student("jack",101),"安徽大学");
        map.put(new Student("rose",101),"安徽大学");
        map.put(new Student("tam",101),"安徽大学");
        map.put(new Student("tom",101),"安徽大学");

        for (Map.Entry<Student, String> entry : map.entrySet()) {
            System.out.println(entry);
        }

    }
}
